- 
		Home
	
- 
WooPayments: Integrated WooCommerce Payments
- 
10.0.0 (latest)
- 
Code
- 
Classes
-  Database_Cache 
		
			
				
					
													
								
																			
											| Total Complexity | 63 | 
																			
											| Dependencies | 2 | 
																			
											| Dependents | 13 | 
																	
							 
													
								
																			
											| Total lines | 463 | 
																			
											| Lines of code | 195 | 
																			
											| Logical lines of code | 113 | 
																	
							 
													
								
																			
											| Comment lines | 201 | 
																			
											| Methods | 14 | 
																			
											| Properties | 2 | 
																	
							 
											 
				 
									
							 
		 
	 
	Methods 14
	
		
		
			| Method | Rating | Maintainability | Complexity | Lines of code | 
		
		
					
				| get_ttl() | B | 44 | 17 | 46 | 
					
				| should_refresh_cache() | A | 50 | 15 | 29 | 
					
				| get_or_add() | A | 53 | 8 | 23 | 
					
				| delete_by_prefix() | S | 53 | 5 | 22 | 
					
				| get() | S | 63 | 5 | 10 | 
					
				| delete_all() | S | 57 | 2 | 22 | 
					
				| write_to_cache() | S | 62 | 2 | 11 | 
					
				| delete() | S | 71 | 2 | 6 | 
					
				| get_from_cache() | S | 67 | 2 | 8 | 
					
				| __construct() | S | 81 | 1 | 3 | 
					
				| init_hooks() | S | 79 | 1 | 3 | 
					
				| add() | S | 79 | 1 | 3 | 
					
				| disable_refresh() | S | 81 | 1 | 3 | 
					
				| is_expired() | S | 69 | 1 | 6 |